home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
lists
/
mint
/
l_0399
/
299
< prev
next >
Wrap
Text File
|
1994-08-27
|
1KB
|
41 lines
Subject: Linking minixfs
Date: Tue, 08 Jun 93 11:56:29 +0100
From: sjg
X-Mts: smtp
This is probably obvious, but I can't find a solution in the docs,
so:
How on earth do you get minixfs to link ?
If I use the standard makefile, it cgcc chokes on the .s files, no
problem, a couple of lines like:
init.o: init.s
${CC} -c init.s -o init.o
work fine. Then it gets to the linking stage, and I get:
% cgcc -G -o minix.xfs init.o minixfs.o minixdev.o io.o cache.o dir.o
inode.o zone.o main.o trans.o misc.o bitmap.o check.o init.o
tinyxhdi.o kludge.o hdio.o -lgnu16
/data/sjg/gcc/lib/gnu16.olb(main.o): Undefined symbol "_main"
(It's actually done with make, so there's no %, but it makes things
clearer...)
Now if I create a function in (for eg: main.c)
int main()
{}
it will link fine, but this isn't what I want, 'cos then the standard
gcc startup stuff will be called, and we want to 'jmp _minix_init'
instead. I can't use the -c flag to stop linking, because I *do*
want it linked, but I don't want the startup code. How ??
Any help appreciated.
Simon.